﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace project_phoenix.source
{
    public class Soul
    {
        // Members
        private string mName;
        private List<Buff> mBuffList;

        // Functions
        public Soul(string name)
        {
            mName = name;
            mBuffList = new List<Buff>();
        }

        public void AddBuff(Buff buffToAdd)
        {
            mBuffList.Add(buffToAdd);
        }

        public void Equip(PlayableEntity player)
        {
            foreach (Buff buff in mBuffList)
            {
                buff.ApplyBuff(player);
            }
        }
        public void UnEquip(PlayableEntity player)
        {
            foreach (Buff buff in mBuffList)
            {
                buff.Remove(player);
            }
        }
    }
}
